package com.seekting.mynews.manager;

import android.content.Context;
import android.os.Bundle;

import com.android.volley.RequestQueue;
import com.seekting.mynews.connect.Connector;
import com.seekting.mynews.connect.baidu.BaiduNewsConnector;
import com.seekting.mynews.connect.tiangou.bean.response.TianGouConnect;

public class NewsManager extends Manager {

    Connector tianGouConnect, baiduNewsConnector;

    public NewsManager(RequestQueue requestQueue, Context context) {
        super(context);
        tianGouConnect = new TianGouConnect(requestQueue, context);
        baiduNewsConnector = new BaiduNewsConnector(requestQueue, context);

    }

    public String request(Action action, Bundle extra) {
        return tianGouConnect.reqeust(action, extra);
    }

}
